
const baseUrl = 'http://192.168.43.213:83'
 
const request = (url = '', date = {}, type = 'GET', header = {
}) => {
    return new Promise((resolve, reject) => {
        uni.request({
            method: type,
            url: baseUrl + url,
            data: date,
            header: header,
            dataType: 'json',         
        }).then((response) => {
                  
            resolve(res.data);
        }).catch(error => {
           
            reject(err)
        })
    });
}
export default request